package com.yx.modules.api.dao;

import com.yx.modules.api.entity.TbGradeRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 评分记录
 * 
 * @author luo
 * @email www.baidu.com
 * @date 2018-06-20 10:06:11
 */
@Mapper
@Repository
public interface TbGradeRecordDao extends BaseDao<TbGradeRecord> {


    TbGradeRecord findByUserIdAndBookId(@Param("userId") Integer userId, @Param("bookId") Integer id);

    List<TbGradeRecord> findByBookid(Integer id);
}
